package com.metronoteapp.dialog;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import com.metronoteapp.R;

public class DialogAboutClient extends Dialog implements
		android.view.View.OnClickListener {
	private Context mContext;
	private Dialog dialog;
	private Button btnCancel;

	public DialogAboutClient(Context context) {
		super(context);
		mContext = context;
	}

	public void displaydialog() {
		dialog = new Dialog(mContext);
		dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		dialog.setContentView(R.layout.layout_about);
		//dialog.getWindow().getAttributes().windowAnimations = R.style.Animations_SmileWindow;
		dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimation;
		btnCancel = (Button) dialog.findViewById(R.id.btnExitAbout);
		btnCancel.setOnClickListener(this);
		dialog.show();
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnExitAbout:
			dialog.dismiss();
			break;
		default:
			break;
		}
	}
}
